package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.rmi.MarshalException;
import java.util.List;

/**
 * 慧尔股份
 *
 * @Description TODO
 * @Author zhangxl
 * @Date 2025/7/10 14:51
 */
@Data
@TableName("position")
public class PositionModel extends BaseEntity {

    @TableId(value = "position_id",type = IdType.AUTO)
    private Long positionId;

    @NotNull(message = "职位标题不能为空")
    private String title;
    @NotNull(message = "公司不能为空")
    private String company;
    @NotNull(message = "公司位置不能为空")
    private String location;
    private BigDecimal salary;
    @NotNull(message = "任职要求不能为空")
    @Size(max = 500,message = "职位要求不能超过500个字符")
    private String experience;
    @NotNull(message = "职位详情不能为空")
    @Size(max = 1000,message = "职位详情不能超过1000个字符")
    private String description;
    @NotNull(message = "任职要求不能为空")
    private String requirements;
    private String benefits;
    @TableLogic(value = "0",delval = "2")
    private String delFlag;
    //active|inactive
    private String status;

    private List<String> requirementList;
    private List<String> benefitList;
}
